package com.mezz.bones.framework.base.page;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Author: zhuang
 * @Date: 2024/9/14 17:28
 * @Description: TODO
 * @Version: 1.0
 **/

@Data
@ApiModel("基类-分页请求参数")
public class BasePageQry implements Serializable {

    @ApiModelProperty("当前页")
    @NotNull(message = "页码不能为空")
    private Long current;

    @ApiModelProperty("每页数据量")
    @NotNull(message = "每页数据量不能为空")
    private Long pageSize;

    @ApiModelProperty("排序字段")
    private String sortWith;

    @ApiModelProperty("是否降序 1是 0否")
    private Integer descending;
}
